@use "var.scss";
@use "element-plus/theme-chalk/src/index.scss" as *;

html, body, #app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Helvetica Neue', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background-color: #fff;
  font-size: 14px;
  overflow: hidden;
  position: relative;
}
.text-color-primary {
  color: var(--el-color-primary);
}
.text-color-success {
  color: var(--el-color-success);
}
.text-color-warning {
  color: var(--el-color-warning);
}
.text-color-danger {
  color: var(--el-color-danger);
}
#nprogress .bar {
  background: var(--el-color-primary) !important;
}
.el-container {
  min-height: 100vh;
}
.el-main {
  padding: 24px 60px;
  background-color: #f2f4f8;
  height: 100vh;
  overflow: auto;
}
.el-menu {
  border-right: none;
}
.el-tag {
  border: none;
  font-size: 12px;
  height: 17px;
  line-height: 17px;
  border-radius: 3px;
  padding: 1px 4px;
  color: #fff;
  margin: 4px;
}
.row-col-mb20 {
  .el-col {
    margin-bottom: 20px;
  }
}
.el-menu-item.is-active {
  background-color: var(--el-menu-hover-bg-color);
}
em {
  font-style: normal;
}
.border-none {
  border: none!important;
}
.flex1 {
  display: flex;
  flex: 1;
}

.enlarge-image {
  width: 400px;
  height: 400px;
  border: 1px solid transparent;
  border-radius: 6px;
  box-sizing: content-box !important;
  a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
  }
  img {
    border-radius: 6px;
    max-width: 100%;
    max-height: 100%;
  }
}
.enlarge-image:hover {
  border: 1px solid #1456f0;
}

.empty-data-mask {
  position: absolute;
  z-index: 7;
  background-color: var(--el-mask-color);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transition: opacity var(--el-transition-duration);
  .empty-data-mask__inner {
    top: 50%;
    margin-top: calc((0px - var(--el-loading-spinner-size)) / 2);
    width: 100%;
    text-align: center;
    position: absolute;
  }
}
.single-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.el-dialog {
  padding: 0;
  .el-dialog__body {
    max-height: calc(100vh - 400px);
    overflow-x: auto;
  }
  .el-dialog__body,.el-dialog__footer,.el-dialog__header {
    padding: 16px 20px;
  }
  .el-dialog__footer {
    border-top: 1px solid #e7e7e7;
  }
  .el-dialog__header {
    border-bottom: 1px solid #e7e7e7;
  }
}
.el-drawer__body {
  padding-top: 0;
  padding-bottom: 0;
}